﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Layout.Master" AutoEventWireup="true" CodeBehind="wfChangePassword.aspx.cs" Inherits="Dragon.wfChangePassword" %>
<%@ MasterType VirtualPath="~/Layout.Master" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .auto-style4 {
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="Login" style="position:absolute;top:15%;left:50%;margin-top:-50px;margin-left:-150px;width:300px;height:180px; right: 503px;">
        <table class="auto-style1">
            <tr>
                <td class="auto-style4" style="color: #000099; text-align:center" colspan="2">
                    <asp:Label ID="lblInfo" runat="server" ForeColor="Red" Width="100%"></asp:Label>
                </td>
            </tr>
            <tr><td style="width:100%; height:10px;" colspan="2"></td></tr>
            <tr>
                <td class="auto-style4" style="width:40%; color: #000099;">Tên đăng nhập</td>
                <td style="width:60%">
                    <asp:TextBox ID="txtUserName" runat="server" Width="100%" ForeColor="#000099" ReadOnly="True">nguyen.phh</asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="auto-style4" style="width:40%; color: #000099;">Mật khẩu cũ</td>
                <td style="width:60%">
                    <asp:TextBox ID="txtOldPassword" runat="server" Width="100%" ForeColor="#000099" TextMode="Password"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="auto-style4" style="width:40%; color: #000099;">Mật khẩu mới</td>
                <td style="width:60%">
                    <asp:TextBox ID="txtNewPassword1" runat="server" Width="100%" ForeColor="#000099" TextMode="Password"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="auto-style4" style="width:40%; color: #000099;">Nhập lại MK mới</td>
                <td style="width:60%">
                    <asp:TextBox ID="txtNewPassword2" runat="server" Width="100%" ForeColor="#000099" TextMode="Password"></asp:TextBox>
                </td>
            </tr>
            <tr style="text-align:center">
                <td colspan="2">
                    <br />
                    <asp:Button ID="btnLogin" runat="server" Text="Đăng nhập" ForeColor="#000099" OnClick="btnLogin_Click" />
                    <asp:SqlDataSource ID="sdsLogin" runat="server" ConnectionString="<%$ ConnectionStrings:CarlsbergConnectionString %>" SelectCommand="sp_Login" SelectCommandType="StoredProcedure">
                        <SelectParameters>
                            <asp:ControlParameter ControlID="txtUserName" Name="Username" PropertyName="Text" Type="String" />
                            <asp:ControlParameter ControlID="txtOldPassword" Name="Password" PropertyName="Text" Type="String" />
                        </SelectParameters>
                    </asp:SqlDataSource>
                </td>
            </tr>
        </table>

    </div>
</asp:Content>
